package xkp.lesson.springboot_shiro.service;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import xkp.lesson.springboot_shiro.dao.ResourceDao;
import xkp.lesson.springboot_shiro.entity.Resource;

import java.util.List;

@Slf4j
@Service
public class ResourceService {
    @javax.annotation.Resource
    private ResourceDao resourceDao;

    public List<Resource> selectByUserId(Integer userId){
        return  resourceDao.selectResourcesByUserId(userId);
    }
}
